package com.jic.member.sms;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.util.ArrayList;
import java.util.List;

@Data
@ApiModel(value = "请求发送短信参数")
public class SmsSendRequest {

    @NotEmpty(message = "phone")
    @ApiModelProperty(notes = "手机号")
    private String phone;

    @NotEmpty(message = "templatCode")
    @ApiModelProperty(notes = "模板号")
    private String templatCode;

    @NotEmpty(message = "smsVariables")
    @ApiModelProperty(notes = "变量key")
    private List<SmsVariable> smsVariables = new ArrayList<>();
}
